package com.csdj.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csdj.server.pojo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xyx
 * @since 2022-12-12
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /*
    查询 所有的部门 和子部门
     */
    public List<Department> getAllDepartmentById(@Param("parentId") Integer parentId);

    /**
     * 添加部门
     * @param dep
     */
    public void addDep(Department dep);

    public void deleteDep(Department dep);
}
